@model WalkingTec.Mvvm.Mvc.Admin.ViewModels.FrameworkUserVms.FrameworkUserVM
@using Microsoft.Extensions.Localization;
@inject IStringLocalizer<Program> Localizer;

<wt:form vm="@Model">
  <wt:tab>
    <wt:tabheaders>
      <wt:tabheader title="@Localizer["_Admin.BasicInfo"]" />
      <wt:tabheader title="@Localizer["_Admin.AdditionInfo"]" />
    </wt:tabheaders>
    <wt:tabcontents>
      <wt:tabcontent>
        <wt:row items-per-row="ItemsPerRowEnum.Two">
          <wt:display field="Entity.ITCode" />
          <wt:combobox field="Entity.IsValid" />
        </wt:row>
        <wt:row items-per-row="ItemsPerRowEnum.Two">
          <wt:textbox field="Entity.Name" />
          <wt:upload field="Entity.PhotoId" upload-type="ImageFile" thumb-width="128" />
        </wt:row>
        <wt:checkbox field="SelectedRolesCodes" items="AllRoles" />
        <wt:checkbox field="SelectedGroupCodes" items="AllGroups" />
      </wt:tabcontent>
      <wt:tabcontent>
        <wt:row items-per-row="ItemsPerRowEnum.Two">
          <wt:combobox field="Entity.Gender" />
        </wt:row>
        <wt:row items-per-row="ItemsPerRowEnum.Two">
          <wt:textbox field="Entity.CellPhone" default-value="13912345678"/>
          <wt:textbox field="Entity.HomePhone" />
        </wt:row>
        <wt:row items-per-row="ItemsPerRowEnum.Two">
          <wt:textbox field="Entity.Email" />
          <wt:textbox field="Entity.ZipCode" />
        </wt:row>
        <wt:textbox field="Entity.Address" />
      </wt:tabcontent>
    </wt:tabcontents>
  </wt:tab>
  <wt:hidden field="Entity.ID" />
  <wt:hidden field="Entity.ITCode" />
  <wt:row align="AlignEnum.Right">
    <wt:submitbutton />
    <wt:closebutton />
  </wt:row>
</wt:form>

<!-- WTM默认页面 Wtm buidin page-->
